package com.luck.emp.storage.qry;

import java.io.Serializable;
import java.util.Date;

import com.luck.pf.util.BaseQuery;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class StorageQry extends BaseQuery implements Serializable {
		String billType;//单据类型
		String inoutType;//出入库类型
		private String status;
		private Date startDate;
		private Date endDate;
		private String billNo;//单据号
		private Long kindId;//商品分类
		
		public String getBillType() {
			return billType;
		}
		public void setBillType(String billType) {
			this.billType = billType;
		}
		public String getInoutType() {
			return inoutType;
		}
		public void setInoutType(String inoutType) {
			this.inoutType = inoutType;
		}
		public String getStatus() {
			return status;
		}
		public void setStatus(String status) {
			this.status = status;
		}
		public Date getStartDate() {
			return startDate;
		}
		public void setStartDate(Date startDate) {
			this.startDate = startDate;
		}
		public Date getEndDate() {
			return endDate;
		}
		public void setEndDate(Date endDate) {
			this.endDate = endDate;
		}
		public String getBillNo() {
			return billNo;
		}
		public void setBillNo(String billNo) {
			this.billNo = billNo;
		}
		public Long getKindId() {
			return kindId;
		}
		public void setKindId(Long kindId) {
			this.kindId = kindId;
		}

		public String getStartDateStr() {
			return DateUtil.dateToString(this.startDate,DateUtil.patternA);
		}
		public String getEndDateStr() {
			return DateUtil.dateToString(this.endDate,DateUtil.patternA);
		}

		public String getBillTypeStr() {
			return FormateUtil.getInstance().getNameByCode("p_bill_type", this.billType);
		}
		public String getInoutTypeStr() {
			return FormateUtil.getInstance().getNameByCode("p_inout_type", this.inoutType);
		}	
}